<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>My Project: ModPerFot.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_mod_per_fot_8c.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ModPerFot.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Modulo Percistencia de Fotos.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_in_per_fot_8h_source.html">InPerFot.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad0e87bdb9dbe0a75b8cf87a13d3680d8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0e87bdb9dbe0a75b8cf87a13d3680d8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>ValidaOperacao_PF</b> (int TipoErro)</td></tr>
<tr class="memitem:a5716fdb25535ac445e2952b10acbd717"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5716fdb25535ac445e2952b10acbd717"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>EcontraFoto_PF</b> (FILE *, const char *, const char *, const char *)</td></tr>
<tr class="memitem:a7effc50a1abe28abbcc8731adb57ab3a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7effc50a1abe28abbcc8731adb57ab3a"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>FechaArqui_PF</b> (FILE *)</td></tr>
<tr class="memitem:a74c4bcb1692b73a12b51a4ed6568b189"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74c4bcb1692b73a12b51a4ed6568b189"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>EncontraFoto_PF</b> (FILE *ArquiTexto, const char *CpfPass, const char *CodigAlbumPass, const char *CodigFotoPass)</td></tr>
<tr class="memitem:a68ed639b1abdf73f7be0bedf383743d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a68ed639b1abdf73f7be0bedf383743d4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>PegaFoto_PF</b> (const char *CpfPass, const char *CodigAlbumPass, const char *CodigFotoPass, <a class="el" href="struct_foto___m.html">Foto_PF</a> *FotoPega)</td></tr>
<tr class="memitem:abc34a2e2d32a97d92a4649b8cbdf0d9e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc34a2e2d32a97d92a4649b8cbdf0d9e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>AtualizaFoto_PF</b> (<a class="el" href="struct_foto___m.html">Foto_PF</a> *NovaFoto)</td></tr>
<tr class="memitem:a5c060095e1bfc349933083e7a5c7b9cb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_mod_per_fot_8c.html#a5c060095e1bfc349933083e7a5c7b9cb">DeletaFoto_PF</a> (const char *CpfUserPass, const char *CodigAlbumPass, const char *CodigFotoPass)</td></tr>
<tr class="memdesc:a5c060095e1bfc349933083e7a5c7b9cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por deletar uma foto do banco de dados.  <a href="#a5c060095e1bfc349933083e7a5c7b9cb"></a><br/></td></tr>
<tr class="memitem:ad6e4f604389b1b8f5a1e3352ff2e6c42"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_mod_per_fot_8c.html#ad6e4f604389b1b8f5a1e3352ff2e6c42">AddFoto_PF</a> (<a class="el" href="struct_foto___m.html">Foto_PF</a> *NovaFoto)</td></tr>
<tr class="memdesc:ad6e4f604389b1b8f5a1e3352ff2e6c42"><td class="mdescLeft">&#160;</td><td class="mdescRight">Responsavel por adicionar uma foto ao banco de dados.  <a href="#ad6e4f604389b1b8f5a1e3352ff2e6c42"></a><br/></td></tr>
<tr class="memitem:a34d3e7de0dd94b68308a295754d2fdb3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a34d3e7de0dd94b68308a295754d2fdb3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>ListaFotos_PF</b> (<a class="el" href="struct_foto___m.html">Foto_PF</a> *FotoPass, int Pulo, const char *CpfPass, const char *CodigPass)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Modulo Percistencia de Fotos. </p>
<p>As responsabilidades do Modulo Percistencia fotos e de gericiar o arquivo responsavel por salvar as struturas das fotos em um arquivo e gerenciar essas detro do arquivo.<br/>
</p>
<p>Arquivo : o Arquivo sera um arquivo de resgistros de tamanho fixo que tera as sequintes caracteristicas:<br/>
 |campo 1= 11 digitos|campo 2= 10 digitos|campo 3= 10 digitos|campo 4= 15 digitos| campo 5= 10 digito|campo 6= 3 digito|campo 7= 3 digito|campo 8= 3 digito| campo 9= 5 digito|campo 10= 4 digitos|campo 11= 4 digitos|<br/>
</p>
<p>campo 1= chave primeria cpf<br/>
 campo 2= O codigo do abum que a foto pertence (caso nao percentenca a nenhum album &mdash;&mdash;&mdash;-) <br/>
 campo 3= O codigo da foto<br/>
 campo 4= nome da foto<br/>
 campo 5= data<br/>
 campo 6= velocidade<br/>
 campo 7= abertura<br/>
 campo 8= iso<br/>
 campo 9= media<br/>
 campo 10= numero de usuarios que votaram<br/>
 campo 11= posicao da proxima foto do album(posicao do registro)<br/>
 </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="ad6e4f604389b1b8f5a1e3352ff2e6c42"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AddFoto_PF </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_foto___m.html">Foto_PF</a> *&#160;</td>
          <td class="paramname"><em>NovaFoto</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por adicionar uma foto ao banco de dados. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">FotoPass</td><td>: O nome do <a class="el" href="struct_usuario.html" title="Essa e a estrutura que classifica o usario no contexto modulo de persistencia usuario variaveis...">Usuario</a> a quem a foto pertence. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um inteiro que diz se houve e qual o tipo de erro:<br/>
 0 - Foto adcionada corretamente<br/>
 -1 - Erro de banco de Dados<br/>
 -2 - A foto nao foi encontrada<br/>
 OT - Erro no vetor de bits<br/>
 </dd></dl>

</div>
</div>
<a class="anchor" id="a5c060095e1bfc349933083e7a5c7b9cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DeletaFoto_PF </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CpfUserPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CodigAlbumPass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>CodigFotoPass</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Responsavel por deletar uma foto do banco de dados. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">CpfUserPass</td><td>: O CPF do usuario a quem a foto pertence. </td></tr>
    <tr><td class="paramname">CodigAlbumPass</td><td>: O codigo do album no qual a foto a se encontra. </td></tr>
    <tr><td class="paramname">CodigFotoPass</td><td>: O codigo da foto a ser deletada. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Um inteiro que diz se houve e qual o tipo de erro:<br/>
 0 - Se o foto foi deletada corretamente<br/>
 -1 - Erro de banco de Dados<br/>
 -2 - A foto nao foi encontrada<br/>
 OT - Erro no vetor de bits<br/>
 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_mod_per_fot_8c.html">ModPerFot.c</a></li>
    <li class="footer">Generated on Wed Jul 4 2012 11:44:30 for My Project by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>
